window.onload = function () {
    
    var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"));
       spread.suspendPaint();
       spread.fromJSON(data);
       var pt = spread.getActiveSheet().pivotTables.all()[0];
   
       var panel = new GC.Spread.Pivot.PivotPanel('myPivotPanel', pt, document.getElementById("panel"));
   
       panel.sectionVisibility(GC.Spread.Pivot.PivotPanelSection.fields | GC.Spread.Pivot.PivotPanelSection.area);
   
   
       spread.resumePaint();
   }